package payroll.trans;

import payroll.*;
import payroll.classification.HourlyClassification;

public class AddHourlyEmployeeTransaction extends AddEmployeeTransaction {

    private double hourlyRate;
    public AddHourlyEmployeeTransaction(int empId, String name, String address, double hourlyRate){
        super(empId, name, address);
        this.hourlyRate = hourlyRate;
    }
    @Override
    protected PaymentClassification getPaymentClassificatio(){
        return new HourlyClassification(hourlyRate);
    }
}
